<template>
    <div>
        <h1>test</h1>
        <el-button @click="toHome">aaa</el-button>
    </div>
</template>

<script setup name="Test">
    const { proxy } = getCurrentInstance();
    const router = useRouter();
    function toHome() {
        router.push({path:'home'})
    }
</script>

<style scoped>

</style>
